package 线程.day1.demo3;

public class Test {
    public static void main(String[] args) {
        T t1=new T(100);

        new Thread(t1).start();

        new Thread(t1).start();

        Runnable r=new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        };
        new Thread(r).start();


        new Thread(()->{
                System.out.println(Thread.currentThread().getName());
            }
        ).start();
    }
}
